<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Department</title>
</head>
<body>
    <form th:action="@{/department/selectAll}" method="post">
        <label>Select All</label>
        <button type="submit">submit</button>
    </form>
    <hr>
    <form th:action="@{/department/selectDepartmentById}" method="post">
        <label>Select Department By Id</label>
        <input type="text" placeholder="Department ID" name="departmentId" required="" autofocus="">
        <button type="submit">submit</button>
    </form>
    <hr>
    <form th:action="@{/department/addDepartment}" method="post">
        <label>Add Department</label>
        <input type="text" placeholder="Department Name"name="departmentName" required="" autofocus="">
        <input type="text" placeholder="Manager Id"name="managerId" required="" autofocus="">
        <button type="submit">submit</button>
    </form>
    <hr>
    <form th:action="@{/department/renameDepartment}" method="post">
        <label>Rename Department</label>
        <input type="text" placeholder="Department ID" name="departmentId" required="" autofocus="">
        <input type="text" placeholder="new name" name="newName" required="" autofocus="">
        <button type="submit">submit</button>
    </form>
    <hr>
    <form th:action="@{/department/removeDepartment}" method="post">
        <label>Remove Department</label>
        <input type="text" placeholder="Department ID" name="departmentId" required="" autofocus="">
        <button type="submit">submit</button>
    </form>
    <hr>
    <form th:action="@{/department/changeCurrentNum}" method="post">
        <label>Change current num</label>
        <input type="text" placeholder="Department ID" name="departmentId" required="" autofocus="">
        <input type="text" placeholder="quantity" name="num" required="" autofocus="">
        <button type="submit">submit</button>
    </form>
    <hr>
    <form th:action="@{/department/changeManager}" method="post">
        <label>Change Department's Manager</label>
        <input type="text" placeholder="Department ID" name="departmentId" required="" autofocus="">
        <input type="text" placeholder="Manager Id" name="managerId" required="" autofocus="">
        <button type="submit">submit</button>
    </form>
</body>
</html>